import request from '@/utils/request'

// 角色列表
export function roleLists(params: any) {
    return request.get({ url: '/auth.role/lists', params })
}
// 角色列表全部
export function roleAll(params: any) {
    return request.get({ url: '/auth.role/all', params })
}
// 添加角色
export function roleAdd(params: any) {
    return request.post({ url: '/auth.role/add', params })
}
// 编辑角色
export function roleEdit(params: any) {
    return request.post({ url: '/auth.role/edit', params })
}
// 删除角色
export function roleDelete(params: any) {
    return request.post({ url: '/auth.role/delete', params })
}

// 角色详情
export function roleDetail(params: any) {
    return request.get({ url: '/auth.role/detail', params })
}

// 获取信息列表列
export function roleInfor(params: any) {
    return request.get({ url: '/information.information/getInformationColumn', params })
}

// 新增数据权限列
export function formAdd(params: any) {
    return request.post({ url: '/auth.role/addFormColumn', params })
}

// 获取信息列表列
export function formlists(params: any) {
    return request.get({ url: '/auth.role/getFormColumn', params })
}

// 编辑数据权限列
export function formEdit(params: any) {
    return request.post({ url: '/auth.role/editFormColumn', params })
}


// 获取新增或编辑列
export function getColumn(params: any) {
    return request.post({ url: '/information.information/getColumn', params })
}

// 获取枚举值
export function getDict(params: any) {
    return request.post({ url: '/information.Information/getDict', params })
}

// 添加信息
export function inforAdd(params: any) {
    return request.post({ url: '/information.Information/add', params })
}
// 信息详情
export function inforDetail(params: any) {
    return request.get({ url: '/information.Information/detail', params })
}
// 信息列表
export function inforLists(params: any) {
    return request.get({ url: '/information.Information/lists', params })
}
// 信息编辑
export function inforEdit(params: any) {
    return request.post({ url: '/information.Information/edit', params })
}
// 信息编辑
export function inforDelete(params: any) {
    return request.post({ url: '/information.Information/delete', params })
}

// 便签列表
export function noteLists(params: any) {
    return request.get({ url: '/remark/lists', params })
}

// 添加便签
export function remarkAdd(params: any) {
    return request.post({ url: '/remark/add', params })
}
// 删除便签
export function remarkDel(params: any) {
    return request.post({ url: '/remark/delete', params })
}

// 编辑便签
export function remarkEdit(params: any) {
    return request.post({ url: '/remark/edit', params })
}